package com.example.star.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class BuyNow implements Serializable {
    @SerializedName("id")
    private int id;
    @SerializedName("userName")
    private String userName;
    @SerializedName("imageResource")
    private String imageResource;
    @SerializedName("starName")
    private String starName;
    @SerializedName("title")
    private String title;
    @SerializedName("productType")
    private String productType;
    @SerializedName("prices")
    private String prices;
    @SerializedName("freight")
    private String freight;
    @SerializedName("deliveryAddress")
    private String deliveryAddress;

    @SerializedName("shoppingAddress")
    private String shoppingAddress;
    @SerializedName("quantity")
    private String quantity;
    @SerializedName("totalPrice")
    private String totalPrice;
    @SerializedName("rating")
    private float rating;
    @SerializedName("comment")
    private String comment;
    @SerializedName("orderStatus")
    private String orderStatus;//订单状态

    private boolean isSelected; // 新增字段

    public BuyNow() {
    }

    public BuyNow(String userName, String imageResource, String starName, String title, String productType, String prices, String freight, String deliveryAddress, String shoppingAddress, String quantity, String totalPrice, String orderStatus) {
        this.userName = userName;
        this.imageResource = imageResource;
        this.starName = starName;
        this.title = title;
        this.productType = productType;
        this.prices = prices;
        this.freight = freight;
        this.deliveryAddress = deliveryAddress;
        this.shoppingAddress = shoppingAddress;
        this.quantity = quantity;
        this.totalPrice = totalPrice;
        this.orderStatus = orderStatus;
    }

    // Getters and Setters

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImageResource() {
        return imageResource;
    }

    public void setImageResource(String imageResource) {
        this.imageResource = imageResource;
    }

    public String getStarName() {
        return starName;
    }

    public void setStarName(String starName) {
        this.starName = starName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getProductType() {
        return productType;
    }
    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getPrices() {
        return prices;
    }

    public void setPrices(String prices) {
        this.prices = prices;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }
    public String getShoppingAddress() {
        return shoppingAddress;
    }
    public void setShoppingAddress(String shoppingAddress) {
        this.shoppingAddress = shoppingAddress;
    }
    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }
    public String getTotalPrice() {
        return totalPrice;
    }
    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public float getRating() {
        return rating;
    }

    public void setRating(float rating) {
        this.rating = rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }
}
